<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/11/6
  Time: 16:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript">
        function editCustomer(){
            var form = document.forms[0];
            form.action = "${pageContext.request.contextPath}/addCustomer";
            form.method="post";
            form.submit();
        }
    </script>
</head>
<body>
<form action="${pageContext.request.contextPath}/update" name="customerFormedit" method="post">
    <table width="60%" border="1" cellpadding="2" cellspacing="0">
        <tr>
            <th>ID</th>
            <th>姓名</th>
            <th>密码</th>
            <th>电话</th>
            <th>地址</th>

        </tr>
        <tr>
            <td><input type="text"name ="cid" value="${customer.cid }"></td>
            <td><input type="text"name ="cust_name"value="${customer.cust_name}"></td>
            <td><input type="text"name ="cust_pwd" value="${customer.cust_pwd }"></td>
            <td><input type="text"name ="cust_phone" value="${cust_phone}"></td>
            <td><input type="text"name ="cust_address" value="${customer.cust_address }"></td>
        </tr>
    </table>
    <input type="submit" value="修改">
</form>
</body>
</html>
